import Vue from 'vue';
//引入VueRouter
import VueRouter from "vue-router";

Vue.use(VueRouter);

//引入页面
import homePage from "../pages/layout/HomePage.vue";

//创建router实例对象，去管理一组路由规则
const router=new VueRouter({
    mode:'history',
    base: process.env.BASE_URL,
    routes:[
        {
            path:'/',
            component:homePage,
        },
        {
            path:'/about',
            component:homePage,
        },
        {
            path:'/home',
            component:homePage,
        },
    ]
})



// 暴露router
export default router
